﻿
using Unity.VisualScripting;
using UnityEditor;
using UnityEditor.Overlays;
using UnityEngine;
using UnityEngine.UIElements;
namespace lights.polytool.editor
{
    [Overlay(typeof(SceneView), "_poly", "_poly", true)]
    class polyoverlay : Overlay
    {
        ElementInspector m_ElementInspector;

        public override VisualElement CreatePanelContent()
        {
            VisualElement root = new VisualElement();
            root.Add(m_ElementInspector = new ElementInspector());
           
            root.Add(new Label("tt"));
            var btn = new UnityEngine.UIElements.Button(() =>
            {

            });
            btn.text = "Add";
            root.Add(btn);
            //UpdateInspector();

            return root;
        }
    }

    class ElementInspector : VisualElement
    {
       
    }

}